package fu.capstone.hanoicityguide.business.bo.hotel;

import java.util.ArrayList;

import android.content.Context;
import android.database.Cursor;
import android.util.Log;
import fu.capstone.hanoicityguide.business.model.Attraction;
import fu.capstone.hanoicityguide.business.model.Category;
import fu.capstone.hanoicityguide.business.model.GeoCoordinate;
import fu.capstone.hanoicityguide.business.model.Hotel;
import fu.capstone.hanoicityguide.dataaccess.attraction.AttractionDAO;
import fu.capstone.hanoicityguide.dataaccess.attraction.AttractionDAOImp;
import fu.capstone.hanoicityguide.dataaccess.base.BaseDAO;
import fu.capstone.hanoicityguide.dataaccess.base.BaseDAOImpl;
import fu.capstone.hanoicityguide.dataaccess.hotel.HotelDAO;
import fu.capstone.hanoicityguide.dataaccess.hotel.HotelDAOImp;

public class HotelBOImp implements HotelBO {
	private Context context;

	private HotelDAO dao;

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public HotelBOImp() {

	}

	public HotelBOImp(Context ctx) {
		this.context = ctx;
		dao = new HotelDAOImp(context);
	}

	@Override
	public ArrayList<Hotel> listHotel(ArrayList<String> filter, String sorter) {
		// get list attraction by filter and sorter
		return dao.listHotel(filter, sorter);
	}

	@Override
	public ArrayList<Hotel> searchHotel(String keyWord,
			ArrayList<String> filter, String sorter) {
		return dao.searchHotel(keyWord, filter, sorter);
	}

	@Override
	public Hotel browseHotel(int hotelID) {
		return dao.browseHotel(hotelID);
	}

	@Override
	public String[] getListHotelClass() {
		return dao.getListHotelClass();
	}

}
